package lab02.test09;

/**
 * Created by 123 on 2017/10/17.
 */
public class Student {
    //1属性
    int studentNumber;
    int classnumber;
    String name;
    String sex;
    int age;

    //2行为
    public String getName() {
        return name;
    }

    public int getStudentNumber() {
        return studentNumber;
    }

    public int getClassnumber() {
        return classnumber;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    //构造方法


    @Override
    public String toString() {
        return "学号" + studentNumber + "班级号" + classnumber + "姓名" + name + "性别" + sex + "年龄" + age;
    }
}
